package org.sofun.subscription.model;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 基金期间对象
 */
public class FundPeriod {
    
    /**
     * 申购开放日
     */
    private LocalDate openDay;
    
    /**
     * 募集期起始日（含截止时间）
     */
    private LocalDateTime startDateTime;
    
    /**
     * 募集期结束日（含截止时间）
     */
    private LocalDateTime closeDateTime;
    
    /**
     * 订单归集规则描述
     */
    private String ruleDescription;
    
    // 构造函数
    public FundPeriod() {
    }
    
    public FundPeriod(LocalDate openDay, LocalDateTime startDateTime, LocalDateTime closeDateTime, String ruleDescription) {
        this.openDay = openDay;
        this.startDateTime = startDateTime;
        this.closeDateTime = closeDateTime;
        this.ruleDescription = ruleDescription;
    }
    
    // Getter和Setter方法
    public LocalDate getOpenDay() {
        return openDay;
    }
    
    public void setOpenDay(LocalDate openDay) {
        this.openDay = openDay;
    }
    
    public LocalDateTime getStartDateTime() {
        return startDateTime;
    }
    
    public void setStartDateTime(LocalDateTime startDateTime) {
        this.startDateTime = startDateTime;
    }
    
    public LocalDateTime getCloseDateTime() {
        return closeDateTime;
    }
    
    public void setCloseDateTime(LocalDateTime closeDateTime) {
        this.closeDateTime = closeDateTime;
    }
    
    public String getRuleDescription() {
        return ruleDescription;
    }
    
    public void setRuleDescription(String ruleDescription) {
        this.ruleDescription = ruleDescription;
    }
    
    @Override
    public String toString() {
        return "FundPeriod{" +
                "openDay=" + openDay +
                ", startDateTime=" + startDateTime +
                ", closeDateTime=" + closeDateTime +
                ", ruleDescription='" + ruleDescription + '\'' +
                '}';
    }
}
